////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   INQUIRY_JAVA
// AUTHOR           :   Alex Cheung 
// DATE CREATE      :   2006/02/03
// DESCRIPTION      :   a FORM file for the function, INQUIRY_JAVA
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/02/03   Alex Cheung     1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.report.genericInquiry;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.erp.framework.controller.form.SimplePageEditStyleForm;
import com.erp.framework.util.logger.Logger;

/**
* <p>A <strong>PageEditForm</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to get the user search criteria input
* and to get the user input from the web browsers.
* from the web browsers.
* As the name implies, it will only handle one-page-edit documents.
*
* @author          Alex Cheung 
* @version 1.0     2006/02/03
* @since           FrameWork 1.0
*
*/
public class InquiryJavaForm extends SimplePageEditStyleForm {

	//Attributes (DB Table Name: T_INQUIRY_JAVA)
	private String[] inquiryType;                    //DB Column Name: INQUIRY_TYPE
	private String[] className;                      //DB Column Name: CLASS_NAME
	private byte[] javaSource;                       //DB Column Name: JAVA_SOURCE
	private String[] createUser;                     //DB Column Name: CREATE_USER
	private String[] createDate;                     //DB Column Name: CREATE_DATE
	private String[] updateUser;                     //DB Column Name: UPDATE_USER
	private String[] updateDate;                     //DB Column Name: UPDATE_DATE
	private String[] isMainClass;                    //DB Column Name: IS_MAIN_CLASS
	private String[] javaType;                       //DB Column Name: JAVA_TYPE

	//Searching Criteria Attributes (DB Table Name: T_INQUIRY_JAVA)
	private String srchInquiryTypeFr;                //DB Column Name: INQUIRY_TYPE
	private String srchInquiryTypeTo;                //DB Column Name: INQUIRY_TYPE
	private String srchClassNameFr;                  //DB Column Name: CLASS_NAME
	private String srchClassNameTo;                  //DB Column Name: CLASS_NAME
	private String srchIsMainClassFr;                //DB Column Name: IS_MAIN_CLASS
	private String srchIsMainClassTo;                //DB Column Name: IS_MAIN_CLASS
	private String srchJavaTypeFr;                   //DB Column Name: JAVA_TYPE
	private String srchJavaTypeTo;                   //DB Column Name: JAVA_TYPE

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {srchInquiryTypeFr = " + this.srchInquiryTypeFr
			+ "\n, srchInquiryTypeTo = " + this.srchInquiryTypeTo
			+ "\n, srchClassNameFr = " + this.srchClassNameFr
			+ "\n, srchClassNameTo = " + this.srchClassNameTo + "}\n";

		String colStr = "COL: { "
			+ "\n, srchIsMainClassFr = " + this.srchIsMainClassFr
			+ "\n, srchIsMainClassTo = " + this.srchIsMainClassTo
			+ "\n, srchJavaTypeFr = " + this.srchJavaTypeFr
			+ "\n, srchJavaTypeTo = " + this.srchJavaTypeTo + "}\n";

		String mandatoryStr = "{}\n";

		return "toString() is:\n" + mandatoryStr + pkStr + colStr;
	}

	
	/**
	* Validate the properties that have been set for this non-HTTP request,
	* and return an <code>ActionErrors</code> object that encapsulates any
	* validation errors that have been found.  If no errors are found, return
	* <code>null</code> or an <code>ActionErrors</code> object with no
	* recorded error messages.
	* <p>
	* The default implementation attempts to forward to the HTTP version of
	* this method.
	*
	* @param      the action errors array
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public void otherValidate(ActionErrors errors) {

		try {

		} catch (Exception e) {
			Logger.logExceptions(this, e);
		}
	}

	/**
	* Validate the properties that have been set for this non-HTTP request,
	* and return an <code>ActionErrors</code> object that encapsulates any
	* validation errors that have been found.  If no errors are found, return
	* <code>null</code> or an <code>ActionErrors</code> object with no
	* recorded error messages.
	* <p>
	* The default implementation attempts to forward to the HTTP version of
	* this method.
	*
	* @param      mapping      the action mapping
	* @param      formIn       the action form
	* @param      request      the http request
	* @param      response     the http response
	* @param      errors       the action errors array
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public void moreValidate(ActionMapping mapping, ActionForm formIn,
		HttpServletRequest request, HttpServletResponse response, ActionErrors errors) {

		try {

		} catch (Exception e) {
			Logger.logExceptions(this, e);
		}
	}

	/**
	* Validate the properties that have been set for this non-HTTP request,
	* and return an <code>ActionErrors</code> object that encapsulates any
	* validation errors that have been found.  If no errors are found, return
	* <code>null</code> or an <code>ActionErrors</code> object with no
	* recorded error messages.
	* <p>
	* The default implementation attempts to forward to the HTTP version of
	* this method.
	*
	* @param      the action errors array
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public void validateSearch(ActionErrors errors) {

		try {

		} catch (Exception e) {
			Logger.logExceptions(this, e);
		}
	}

	/**
	* Validate the properties that have been set for this non-HTTP request,
	* and return an <code>ActionErrors</code> object that encapsulates any
	* validation errors that have been found.  If no errors are found, return
	* <code>null</code> or an <code>ActionErrors</code> object with no
	* recorded error messages.
	* <p>
	* The default implementation attempts to forward to the HTTP version of
	* this method.
	*
	* @param      mapping      the action mapping
	* @param      formIn       the action form
	* @param      request      the http request
	* @param      response     the http response
	* @param      errors       the action errors array
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public void moreValidateSearch(ActionMapping mapping, ActionForm formIn,
		HttpServletRequest request, HttpServletResponse response, ActionErrors errors) {

		try {

		} catch (Exception e) {
			Logger.logExceptions(this, e);
		}
	}

	/**
	* Reset all bean properties to their default state.  This method
	* is called inside the reset() method.
	*
	* @param      mapping The mapping used to select this instance
	* @param      request The servlet request we are processing
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public void otherReset(ActionMapping mapping, HttpServletRequest request) {

		setRowMode(null);
		setIdx(null);
		//companyCode = null;
		//srchCompanyCode = null;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for Table (InquiryJava)
	////////////////////////////////////////////////////////////////////////////////

	public String[] getInquiryType() {
		return this.inquiryType;
	}

	public String[] getClassName() {
		return this.className;
	}

	public byte[] getJavaSource() {
		return this.javaSource;
	}

	public String[] getCreateUser() {
		return this.createUser;
	}

	public String[] getCreateDate() {
		return this.createDate;
	}

	public String[] getUpdateUser() {
		return this.updateUser;
	}

	public String[] getUpdateDate() {
		return this.updateDate;
	}

	public String[] getIsMainClass() {
		return this.isMainClass;
	}

	public String[] getJavaType() {
		return this.javaType;
	}

	public void setInquiryType(String[] inquiryType) {
		this.inquiryType = inquiryType;
	}

	public void setClassName(String[] className) {
		this.className = className;
	}

	public void setJavaSource(byte[] javaSource) {
		this.javaSource = javaSource;
	}

	public void setCreateUser(String[] createUser) {
		this.createUser = createUser;
	}

	public void setCreateDate(String[] createDate) {
		this.createDate = createDate;
	}

	public void setUpdateUser(String[] updateUser) {
		this.updateUser = updateUser;
	}

	public void setUpdateDate(String[] updateDate) {
		this.updateDate = updateDate;
	}

	public void setIsMainClass(String[] isMainClass) {
		this.isMainClass = isMainClass;
	}

	public void setJavaType(String[] javaType) {
		this.javaType = javaType;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for searching criterias
	////////////////////////////////////////////////////////////////////////////////

	public String getSrchInquiryTypeFr() {
		return this.srchInquiryTypeFr;
	}

	public String getSrchInquiryTypeTo() {
		return this.srchInquiryTypeTo;
	}

	public String getSrchClassNameFr() {
		return this.srchClassNameFr;
	}

	public String getSrchClassNameTo() {
		return this.srchClassNameTo;
	}

	public String getSrchIsMainClassFr() {
		return this.srchIsMainClassFr;
	}

	public String getSrchIsMainClassTo() {
		return this.srchIsMainClassTo;
	}

	public String getSrchJavaTypeFr() {
		return this.srchJavaTypeFr;
	}

	public String getSrchJavaTypeTo() {
		return this.srchJavaTypeTo;
	}

	public void setSrchInquiryTypeFr(String srchInquiryTypeFr) {
		this.srchInquiryTypeFr = srchInquiryTypeFr;
	}

	public void setSrchInquiryTypeTo(String srchInquiryTypeTo) {
		this.srchInquiryTypeTo = srchInquiryTypeTo;
	}

	public void setSrchClassNameFr(String srchClassNameFr) {
		this.srchClassNameFr = srchClassNameFr;
	}

	public void setSrchClassNameTo(String srchClassNameTo) {
		this.srchClassNameTo = srchClassNameTo;
	}

	public void setSrchIsMainClassFr(String srchIsMainClassFr) {
		this.srchIsMainClassFr = srchIsMainClassFr;
	}

	public void setSrchIsMainClassTo(String srchIsMainClassTo) {
		this.srchIsMainClassTo = srchIsMainClassTo;
	}

	public void setSrchJavaTypeFr(String srchJavaTypeFr) {
		this.srchJavaTypeFr = srchJavaTypeFr;
	}

	public void setSrchJavaTypeTo(String srchJavaTypeTo) {
		this.srchJavaTypeTo = srchJavaTypeTo;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}